package com.bingquan.company.feign;

import com.bingquan.company.model.WorkFlowRequestParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(name = "feign-server", path = "/api/workflow/start")
public interface TokenFeign {

    @PostMapping
    String getUserId(@RequestHeader("token") String token, @RequestBody WorkFlowRequestParam param);
}
